<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="../assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../assets/lib/cropper/cropper.css">
    <link rel="stylesheet" href="../assets/css/publish.css">

</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">添加用户</div>
        <div class="layui-card-body">
            <!-- 添加用户表单 -->
            <form class="layui-form" action="" id="form-add">

                <!-- 用户名 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- 昵称 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">昵称</label>
                    <div class="layui-input-block">
                        <input type="text" name="nickname" id="nickname" required lay-verify="required|nickname" placeholder="请输入昵称" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- 密码 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="password" required lay-verify="required|pass" placeholder="请输入密码" autocomplete="off" class="layui-input" id="password">
                    </div>
                </div>
                <!-- 确认密码 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">确认密码</label>
                    <div class="layui-input-block">
                        <input type="password" required lay-verify="required|pass|repass" placeholder="请输入确认密码" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <!-- 邮箱 -->
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-block">
                        <input type="text" name="email" required lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <!-- 图片框   -->
                <div class="layui-form-item">
                    <label class="layui-form-label">图片</label>
                    <div class="layui-input-block">
                        <input id="ico" type="text" name="user_pic" required lay-verify="required" placeholder="图片" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <!-- 提交按钮 -->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>

            </form>
        </div>
    </div>



    <!-- 图像区域 -->
    <!-- 第四行 -->
    <div class="layui-form-item">
        <!-- 左侧的 label -->
        <label class="layui-form-label">文章封面</label>
        <!-- 选择封面区域 -->
        <div class="layui-input-block cover-box">
            <!-- 左侧裁剪区域 -->
            <div class="cover-left">
                <img id="image" src="../assets/images/sample2.jpg" alt="" />
            </div>
            <!-- 右侧预览区域和选择封面区域 -->
            <div class="cover-right">
                <!-- 预览的区域 -->
                <div class="img-preview"></div>
                <!-- 选择封面按钮 -->
                <button id="choose-cover" type="button" class="layui-btn layui-btn-danger">
									选择封面
								</button>
            </div>
        </div>
    </div>
    <input id="file" type="file" style="display: none" accept="image/*" />
    <!-- 第五行 -->
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button id="upload-image" class="layui-btn" lay-submit lay-filter="formDemo">
								上传头像
							</button>
            <button id="rest-img" lay-submit class="layui-btn layui-btn-primary">
								重新选择
							</button>
        </div>
    </div>





    <script type="text/javascript" src="../assets/lib/jquery.js"></script>
    <script type="text/javascript" src="../assets/js/wzl/wzl-baseAPI.js"></script>
    <script type="text/javascript" src="../assets/lib/cropper/Cropper.js"></script>
    <script type="text/javascript" src="../assets/lib/cropper/jquery-cropper.js"></script>
    <script type="text/javascript" src="../assets/lib/layui/layui.all.js"></script>

    <script type="text/javascript" src="../assets/js/zzb/zzb-user-add.js"></script>
</body>

</html>